#include <iostream>
using namespace std;

int main() {
    int k;
    cin >> k;
    double S = 0;
    int n = 1;
    
    while (S <= k)
    {
        S += 1.0 / n;
        n++;
    }
    cout << n-1;

    return 0;
}